crypto = require 'crypto'

module.exports = (str, salt) ->
  md5 = crypto.createHash 'md5'
  md5.update if salt then str + salt else str
  md5.digest('hex')

# console.log module.exports('123456', '')
